package com.aat.restful.resteasy.itf;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.HttpHeaders;
import javax.ws.rs.core.MediaType;

import com.aat.restful.resteasy.bean.User;

@Path("test")
public class Api {

	@GET
	@Path("test")
	@Produces(MediaType.APPLICATION_JSON + ";charset=UTF-8")
	public Object getOne(@Context HttpHeaders hs) {
		User u = new User();
		u.setName("张三");
		u.setAge(23);
		return u;
	}
	
}
